﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project.B12.IRepository
{
    public class DataPath
    {
        private static string GetCurrentProjectPath => System.AppDomain.CurrentDomain.BaseDirectory;//获取具体路径

        /// <summary>
        /// 菌、药、SIR数据库 
        /// </summary>
        public static string DataConnectionString = @"DataSource=" + Path.Combine(GetCurrentProjectPath, "Data", "Data.db");

        /// <summary>
        /// 历史记录数据库
        /// </summary>
        public static string DataHistoryString = @"DataSource=" + Path.Combine(GetCurrentProjectPath, "Data", "His.db");

        //public static string UserConnectionPath = GetCurrentProjectPath + @"\Data\Users.db";
        public static string UserConnectionPath = Path.Combine(GetCurrentProjectPath, "Data", "Users.db");

        public static string ErrorConfigPath = Path.Combine(GetCurrentProjectPath, "Data", "ErrorConfig.xml");

        

        public static string MotorConfigPath = Path.Combine(GetCurrentProjectPath, "conf", "Instrument.ini");
    }
}
